package com.tywj.panda.customer.common.entity

import com.google.gson.annotations.SerializedName

/**
 * <pre>
 *     author : June Yang
 *     time   : 2020/5/16
 *     desc   : 用户信息
 *     version: 1.0
 * </pre>
 */
class UserEntity {

    var uid = ""

    // 手机号
    var phone = ""

    //头像
    var avatar = ""


    //生日
    var birthdate = ""

    //职业
    var career = ""

    //性别
    var gender = ""

    //昵称
    @SerializedName("nick_name")
    var nickName = ""


    //头像
    @SerializedName("portrait_url")
    var portraitUrl = ""


    //融云登录Token
    @SerializedName("rongyun_token")
    var rongyunToken = ""

    companion object {
        //禁用
        const val STATUS_ONLY_NONE = 0

        //只有手机号
        const val STATUS_ONLY_MOBILE = 1

        //手机号+完善资料
        const val STATUS_MOBILE_AND_IMP_INFO = 3

        //只有微信
        const val STATUS_ONLY_WECHAT = 4

        //微信+手机号
        const val STATUS_WECHAT_AND_MOBILE = 5

        //手机号+微信+完善资料
        const val STATUS_ALL = 7

    }

    //微信返回的用户信息
    var sex = 0

    //头像
    var headimgurl = ""

    //微信返回的数据格式：
//    "openid": "o4X7V00tjh-d0avBRmWJul7ncMaY",
//    "nickname": "水无神",
//    "sex": 1,
//    "language": "zh_CN",
//    "city": "Chengdu",
//    "province": "Sichuan",
//    "country": "CN",
//    "headimgurl": "http:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/ssTSauSOFVb0M13PZ6eD54eEMrntriaxI67MdXqDrRra0OibCGUSyAAsgWpz453eekoOPD2W6fvsEYFO79Pyia4tw\/132",
//    "privilege": [],
//    "unionid": "oQV24v7B3aCjS4wKfC63U8s2RGq0"

}